package org.jeecg.modules.wechat;

/**
 * 微信通用接口凭证
 * @author caspar.chen
 * @date 2017-5-12
 */
public class AccessToken {
    /**
     *  获取到的凭证
     */
    private String access_token;

    /**
     *  凭证有效时间，单位：秒
     */
    private int expires_in;

    public String getToken() {
        return access_token;
    }

    public void setToken(String token) {
        this.access_token = token;
    }

    public int getExpiresIn() {
        return expires_in;
    }

    public void setExpiresIn(int expiresIn) {
        this.expires_in = expiresIn;
    }

    public AccessToken(String token, int expiresIn) {
        super();
        this.access_token = token;
        this.expires_in = expiresIn;
    }

    public AccessToken() {
        super();
    }

    @Override
    public String toString() {
        return "AccessToken{" +
                "access_token='" + access_token + '\'' +
                ", expires_in=" + expires_in +
                '}';
    }
}
